using System;
using log4net;
using NetBpm.Workflow.Delegation;

namespace NetBpm.Workflow.Delegation.Impl.Htmlformatter
{
	/// <summary>
	/// Create by Neil Cai 2006.05.10,for getting web user control properties.
	/// </summary>
	public class WebUserControl:AbstractConfigurable, IHtmlFormatter
	{
		private static readonly ILog log = LogManager.GetLogger( typeof(DateInput) );

		public System.String ObjectToHtml(System.Object valueObject, System.String parameterName, System.Web.HttpRequest request)
		{
			System.String html = null;
			
			System.String classname = (String) GetConfiguration()["classname"];
			System.String path = (String) GetConfiguration()["path"];
			
			html = classname + "|" + path;
			
			log.Debug("generated text area control : " + html);
			
			return html;
		}
		
		public System.Object ParseHttpParameter(System.String text, System.Web.HttpRequest request)
		{
			return text;
		}
	}
}
